#pragma once

#include <string>
#include <vector>

struct Cmd {
    int id;
    int cmdid;
    std::string content;
    
    static std::vector<Cmd> getAll();
    static Cmd getById(int id);
    static bool add(int cmdid, const std::string& content);
    static bool update(int id, const std::string& content);
    static bool remove(int id);
    static bool exists(int cmdid);
}; 